<?php

class operatorlog_tasks_cleanlogs extends base_task_abstract implements base_interface_task {

    public function exec($params = null) {
        $time = strtotime('-30 days');
        $sql = "DELETE FROM " . DB_PREFIX . "operatorlog_normallogs WHERE dateline<=$time";
        app::get('operatorlog')->model('normallogs')->db->exec($sql);
    }
}
